org.eclipse.vtp.framework.common
Interface INumberObject

All Superinterfaces:
IDataObject

public interface INumberObject
extends IDataObject

Represents a dynamic, integer number.

Author:
Lonnie Pryor

Field Summary
static java.lang.String TYPE_NAME
          The name of the number type.
 
Method Summary
 java.lang.Integer getValue()
          Returns the current value of this data object.
 boolean setValue(java.lang.Object value)
          Sets the value of this data object to the specified value.
 
Methods inherited from interface org.eclipse.vtp.framework.common.IDataObject
getField, getType, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isReadOnly, setField, toString
 

Field Detail

TYPE_NAME

static final java.lang.String TYPE_NAME
The name of the number type.

See Also:
Constant Field Values
Method Detail

getValue

java.lang.Integer getValue()
Returns the current value of this data object.

Returns:
The current value of this data object.

setValue

boolean setValue(java.lang.Object value)
                 throws java.lang.IllegalStateException
Sets the value of this data object to the specified value.

This method will attempt to coerce the supplied value into a Java Integer object.

Parameters:
value - The value to assign to this data object.
Returns:
False if the supplied value cannot be coerced into a Java Integer.
Throws:
java.lang.IllegalStateException - If this object is read-only.